Skip to content

dgb: pin NodeP2P handshake constants to DigiByte Core (70019 / port 12024) - #252

Merged
frstrtr merged 2 commits into
masterfrom
dgb/p2p-handshake-constants
Jun 20, 2026
Merged

dgb: pin NodeP2P handshake constants to DigiByte Core (70019 / port 12024)#252
frstrtr merged 2 commits into
masterfrom
dgb/p2p-handshake-constants

Conversation

@frstrtr

@frstrtr frstrtr commented Jun 20, 2026

Copy link
Copy Markdown
Owner

Phase B NodeP2P-producer prep. Reconcile the two P2P-handshake constants coin/p2p_node.hpp carried verbatim from the BTC module against DigiByte Core source.

  • protocol_version 70016 -> 70019 (DGB Core src/version.h PROTOCOL_VERSION). WTXID_RELAY_VERSION=70018 < 70019, so BIP 339 wtxidrelay stays active. Advertising BTC 70016 understated our version to a DGB peer.
  • advertised addr_from port 8333 -> 12024 (DGB kernel/chainparams.cpp:178, mainnet; testnet 12026 / regtest 18444). Real connect target still supplied by run_node via NetService.

Resolves the M3 [decision-needed] TODO in p2p_node.hpp. P2P-layer only, no consensus value; fenced to src/impl/dgb, no shared-base / other-coin touch. Build EXIT=0, --selftest OK.

NOTE: integrators 06-20 directive suggested pinning 70016; the source-of-truth DGB Core value is 70019 (verified ../digibyte). Producer NodeP2P construct+connect in run_node is the follow-on slice, gated on a reachable digibyted (DGB Core build kicked).

frstrtr added 2 commits June 20, 2026 01:18
…2024)

Reconcile the two P2P-handshake constants p2p_node.hpp carried verbatim
from the BTC module against DigiByte Core source (../digibyte):

  - protocol_version 70016 -> 70019 (src/version.h PROTOCOL_VERSION).
    WTXID_RELAY_VERSION is 70018 < 70019, so BIP 339 wtxidrelay stays
    active; advertising the BTC 70016 understated our version to a DGB
    peer.
  - advertised addr_from port 8333 -> 12024 (kernel/chainparams.cpp:178,
    DGB mainnet; testnet 12026 / regtest 18444). The real connect target
    is still supplied by run_node via NetService.

Resolves the M3 [decision-needed] TODO. P2P-layer only, no consensus
value; fenced to src/impl/dgb. Producer NodeP2P construct+connect in
run_node is the follow-on slice (gated on a reachable digibyted).
Third BTC-leftover in the embedded coin-daemon version handshake, same
class as the proto/port constants this PR already pinned: connected()
advertised subversion "c2pool-btc" to digibyted. A DGB embedded node
must identify as c2pool-dgb. P2P-layer only, no consensus value; fenced
to src/impl/dgb. Verified against live regtest digibyted (DigiByte:8.26.2,
getnetworkinfo protocolversion=70019 — matches the proto pin).
@frstrtr
frstrtr merged commit 552399e into master Jun 20, 2026
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant